-- GENERATED SPELL FOR [Rimblat Earthshatter] --


function spell0_29182(pUnit, Event) --@Chain Heal,Heal--
pUnit:FullCastSpellOnTarget(33642,pUnit)
pUnit:RegisterEvent('Sorts_29182', 2500, 1)
end

function spell1_29182(pUnit, Event) --@Thunder,Self--
pUnit:FullCastSpellOnTarget(53630,pUnit)
pUnit:RegisterEvent('Sorts_29182', 634, 1)
end

function Sorts_29182(pUnit, Event)
local choix_sorts_29182 = math.random(0, 1)
if choix_sorts_29182 == 0 then
pUnit:RegisterEvent('spell0_29182', 1, 1)
end
if choix_sorts_29182 == 1 then
pUnit:RegisterEvent('spell1_29182', 1, 1)
end
end

function mob29182_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29182', math.random(1500, 3000), 1)
end

function mob29182_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29182_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29182_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29182, 1, 'mob29182_Action')
RegisterUnitEvent(29182, 2, 'mob29182_Leave')
RegisterUnitEvent(29182, 3, 'mob29182_Kill')
RegisterUnitEvent(29182, 4, 'mob29182_Die')
